package org.yxs.es;

import com.alibaba.fastjson.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: y-xs
 * @date: 2021/08/25 18:34
 * @description: json美化工具类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EsUser {
    private String name;
    private Integer age;
    private String sex;

    public String toJsonString() {
        return JSONObject.toJSONString(this);
    }

}
